package com.atguigu.gmall.product.service.impl;


import com.atguigu.gmall.model.product.SpuSaleAttr;
import com.atguigu.gmall.product.mapper.SpuSaleAttrMapper;
import com.atguigu.gmall.product.service.SpuSaleAttrService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author h8467
 * @description 针对表【spu_sale_attr(spu销售属性)】的数据库操作Service实现
 * @createDate 2022-11-01 14:01:54
 */
@Service
public class SpuSaleAttrServiceImpl extends ServiceImpl<SpuSaleAttrMapper, SpuSaleAttr>
        implements SpuSaleAttrService {
    @Autowired
    SpuSaleAttrMapper spuSaleAttrMapper;

    @Override
    public List<SpuSaleAttr> getListBySpuId (Long spuId) {
     /*   QueryWrapper<SpuSaleAttr> queryWrapper = new QueryWrapper<> ();
        queryWrapper.eq ("spu_id", spuId);*/
        List<SpuSaleAttr> spuSaleAttrs = this.spuSaleAttrMapper.getListBySpuId (spuId);

        return spuSaleAttrs;
    }
}




